<?php
	$province	= $this->mod_lib->load_all('provinces', '', array('status'=>1, 'area !='=>'', 'hot'=>1), '', '', array('area'=>'ASC'));
?>
<div class="mod_local" style="float: left;">
	<a <?php if ($this->uri->segment(1) == ""){?> class="loc_acti"<?php }?> href="<?php echo base_url()?>">TOÀN QUỐC</a>
	<?php foreach ($province as $prov_hot){?>
		<a <?php if ($this->uri->segment(1) == url_title(utf8_to_ascii($prov_hot['name']))){?> class="loc_acti"<?php }?> href="<?php echo base_url().url_title(utf8_to_ascii($prov_hot['name']))?>" style="font-weight: bold;"><?php echo mb_strtoupper($prov_hot['name'], 'UTF-8');?></a>
	<?php }?>
	<div class="xemthem">
		Xem thêm <img src="<?php echo base_url()?>images/sites/arrow_2.png" width="11" height="6" />
		<?php
			$province_1	= $this->mod_lib->load_all('provinces', '', array('status'=>1, 'area'=>1), '', '', array('hot'=>'DESC', 'name'=>'ASC'));
			$province_2	= $this->mod_lib->load_all('provinces', '', array('status'=>1, 'area'=>2), '', '', array('hot'=>'DESC', 'name'=>'ASC'));
			$province_3	= $this->mod_lib->load_all('provinces', '', array('status'=>1, 'area'=>3), '', '', array('hot'=>'DESC', 'name'=>'ASC'));
		?>
		<div class="loc_hiden">
			<div style="float: left; margin: 0 15px 15px;">
		        <div style="float: left; width: 150px; text-align: left; color: #333;">
			    	<div title="Rao vặt tại Miền Bắc" style="background: none; color: #D34A00; font-weight: bold; font-size: 13px;" class="Region">Miền Bắc</div>
			    	<ul style="list-style-type: none; padding-left: 0px; line-height: 19px;">
			    		<?php foreach ($province_1 as $pr1){?>
			    			<li><a href="<?php echo base_url().url_title(utf8_to_ascii($pr1['name']))?>" <?php if ($pr1['hot']==1) echo 'style="color: #0192f3; font-weight: bold;"';?>><?php echo $pr1['name']?></a></li>
			    		<?php }?>			    		
			    	</ul>			    
			    </div>		
			    
			    <div style="float: left; width: 150px; text-align: left; color: #333;">
			    	<div title="Rao vặt tại Miền Bắc" style="background: none; color: #D34A00; font-weight: bold; font-size: 13px;" class="Region">Miền Trung</div>
			    	<ul style="list-style-type: none; padding-left: 0px; line-height: 19px;">
			    		<?php foreach ($province_2 as $pr2){?>
			    			<li><a href="<?php echo base_url().url_title(utf8_to_ascii($pr2['name']))?>" <?php if ($pr2['hot']==1) echo 'style="color: #0192f3; font-weight: bold;"';?>><?php echo $pr2['name']?></a></li>
			    		<?php }?>			    		
			    	</ul>			    
			    </div>	
			    
			    <div style="float: left; width: 150px; text-align: left; color: #333;">
			    	<div title="Rao vặt tại Miền Bắc" style="background: none; color: #D34A00; font-weight: bold; font-size: 13px;" class="Region">Miền Nam</div>
			    	<ul style="list-style-type: none; padding-left: 0px; line-height: 19px;">
			    		<?php foreach ($province_3 as $pr3){?>
			    			<li><a href="<?php echo base_url().url_title(utf8_to_ascii($pr3['name']))?>" <?php if ($pr3['hot']==1) echo 'style="color: #0192f3; font-weight: bold;"';?>><?php echo $pr3['name']?></a></li>
			    		<?php }?>			    		
			    	</ul>			    
			    </div>	    			   
			</div>							            
		</div>
	</div>
</div><!--End.mod_local-->
<div style="float: right; margin-left: 5px;" class="">
	<a title="Đăng tin rao vặt" style="text-indent:-120px;overflow:hidden" rel="nofollow" href="<?php echo base_url().'dang-tin-rao-vat/'?>" class="btnAdvertise">Đăng tin rao vặt</a>
</div>